package com.atguigu08.constructor.exer2;

/**
 * ClassName: TriAngleTest
 * Description:
 *
 * @Author liu
 * @Create 2024/8/27 15:08
 * @Version 1.0
 */

public class TriAngleTest {
    public static void main(String[] args) {
        TriAngle p1 =new TriAngle();
        p1.getBase(12);
        p1.getHeigth(23);
        System.out.println(p1.getarea());

        TriAngle p2 = new TriAngle(12,12);
        System.out.println(p2.getarea());
    }
}
